<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<div th:fragment="order_picture_channel" class="layui-fluid">

    <th:block
            th:if="${#authPermit.checkPermit('/prom/batch/update.action') || #authPermit.checkPermit('/prom/batch/channelConfigProm.action')}">
        <zmn>
            <script id="channelDelete" type="text/html">
                <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
            </script>
        </zmn>
    </th:block>
    <div class="layui-form-item">
        <label class="layui-form-label">渠道ID/名称：</label>
        <div class="layui-input-inline">
            <input type="text" placeholder="请输入一二级渠道名称/ID" id="keyWord" name="keyWord" class="layui-input"/>
        </div>
        <input type="hidden" name="id" th:value="${dto.id}">
        <button class="layui-btn layui-btn-sm" lay-submit="" id="batch-channel-query"
                lay-filter="zmn-form-channel-query-submit"><i class="layui-icon">&#xe615;</i>
        </button>

    </div>
    <div class="layui-form-item layui-col-md4">
        <label class="layui-form-label">是否开通全渠道：</label>
        <div class="layui-input-block">
            <input type="checkbox" id="allChannel" th:key="${dto.id}" style="background-color: #EEEEEE"
                   class="allChannel"
                   name="allChannel" lay-skin="switch" lay-filter="allChannel" lay-text="ON|OFF"
                   th:checked="${dto.allChannel == 3}">
        </div>
    </div>
    <div class="layui-form-item layui-col-md4">
        <label class="layui-form-label">是否排除渠道：</label>
        <div class="layui-input-block">
            <input type="checkbox" id="excludeType" th:key="${dto.id}" style="background-color: #EEEEEE"
                   class="excludeType"
                   name="excludeType" lay-skin="switch" lay-filter="excludeType" lay-text="ON|OFF"
                   th:checked="${dto.allChannel == 2}">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-card-body">
            <table id="zmn-prom-modify-channel-table" lay-filter="zmn-prom-modify-channel-table"></table>
            <script type="text/html" id="zmn-prom-modify-channel-table-tool">
                <zmn>
                    <div class="layui-btn-container">
                        <div class="layui-btn-group">
                            <button id="btn-skip-channel-page" lay-filter="btn-skip-channel-page"
                                    class="layui-btn layui-btn-sm  layui-btn-primary">
                                +新增
                            </button>
                        </div>
                    </div>
                </zmn>
            </script>
        </div>
    </div>
</div>
</div>
</div>
</html>
